home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgramD2.iso
/
Visual Database
/
Visual dBase v5.5
/
SAMPLES1.PAK
/
PICTURES.WFM
< prev
next >
Wrap
Text File
|
1995-07-18
|
4KB
|
141 lines
*****************************************************************************
* PROGRAM: Pictures.wfm
*
* WRITTEN BY: Borland Samples Group
*
* DATE: 5/93
*
* UPDATED: 5/95
*
* VERSION: Visual dBASE
*
* DESCRIPTION: This form file creates a form that displays bitmaps in an
* OLE object -- which you can modify in Paint Brush by double
* clicking in that object. It displays the bitmap names in
* a listbox, and also allows you to listen to the sound
* corresponding to each bitmap by pressing the Sound button
*
* PARAMETERS: None
*
* CALLS: Pictures.qbe (View of table)
* Buttons.cc (Custom Controls file)
*
* USAGE: DO Pictures.wfm
*
*******************************************************************************
create session
set talk off
set ldCheck off
** END HEADER -- do not remove this line*
* Generated on 05/23/95
*
parameter bModal
local f
f = new PICTURESFORM()
if (bModal)
f.mdi = .F. && ensure not MDI
f.ReadModal()
else
f.Open()
endif
CLASS PICTURESFORM OF FORM
Set Procedure to &_dbwinhome.samples\Buttons.cc Additive
this.Left = 0
this.Height = 19.1758
this.Text = "Pictures Form"
this.MousePointer = 1
this.View = "PICTURES.QBE"
this.ColorNormal = "BG/B"
this.Minimize = .F.
this.Width = 91.833
this.Maximize = .F.
this.TopMost = .F.
this.PageNo = 1
this.Top = 0
DEFINE PUSHBUTTON SOUND OF THIS;
PROPERTY;
Group .T.,;
Left 1.3193,;
Height 1.6611,;
Text "Play &Sound",;
ColorNormal "N/W",;
Width 20.5137,;
OnClick {;play sound binary pictures->sound},;
PageNo 1,;
Default .T.,;
Top 11.2793
DEFINE LISTBOX THINGS OF THIS;
PROPERTY;
Left 1.1592,;
Height 5.626,;
ColorNormal "N/W+",;
Width 20.8408,;
PageNo 1,;
ID 800,;
DataSource "FIELD NAME",;
ColorHighLight "RG+/B",;
Top 4.5498
DEFINE OLE PICTURE OF THIS;
PROPERTY;
Left 23.0996,;
Height 15.6406,;
DataLink "PICTURES->BITMAPOLE",;
Border .F.,;
Width 67.5664,;
PageNo 1,;
ID 88,;
Top 3.2998
DEFINE TEXT TITLE OF THIS;
PROPERTY;
Left 0,;
Height 3,;
FontBold .F.,;
FontSize 28,;
Text "Sights and Sounds",;
FontName "Times New Roman",;
Border .F.,;
ColorNormal "GR+/B",;
Alignment 1,;
Width 100.333,;
PageNo 1,;
Top 0
DEFINE TEXT SELECTTEXT OF THIS;
PROPERTY;
Left 1.3193,;
Height 1.1113,;
FontSize 11,;
Text "Select &Image:",;
Border .F.,;
ColorNormal "RG+/B",;
Width 18.5137,;
PageNo 1,;
Top 3.2998
DEFINE SAMPLEINFOBUTTON PICTURESINFOBUTTON OF THIS;
PROPERTY;
OnOpen CLASS::PICTURESINFOBUTTON_ONOPEN,;
Group .T.,;
Left 88,;
Height 1.1943,;
Width 3.5,;
Top 0.0996
****************************************************************************
Procedure PICTURESINFOBUTTON_OnOpen
****************************************************************************
form.picturesInfoButton.sampleName = "Pictures.wfm"
form.things.SetFocus()
ENDCLASS